package com.yonyou.state.core;

import com.yonyou.state.constant.OrderStatusEnum;
import com.yonyou.state.constant.SOStatusEnum;
import lombok.Data;

/**
 * @author lidwt
 * @date 2021/10/29 17:47
 **/
@Data
public abstract class AbstractSOOperator {

    int status;
    public abstract int[] getSupportStates();
    /**
     * 状态流转方法
     * @param event 流转的工单操作事件
     * @param soStatus 当前工单状态
     * @return 扭转后的工单状态
     */
    public abstract int handleEvent(int soStatus, SOStatusEnum event);
}
